import { createSSRApp } from "vue";
import "./pages/style/global.css";
import Tab from "./pages/components/Tab.vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import Vant from "vant";
import 'vant/lib/index.css'; // 不可忘记引入 CSS 样式
import { createPinia } from "pinia";
import './pages/style/commonStyle.css'

export function createApp() {
  const app = createSSRApp(App);
  app.component("Tab", Tab);
  app.use(createPinia());
  app.use(ElementPlus, {
    locale: zhCn,
  });
  app.use(Vant);
  return {
    app,
  };
}
